package cn.lutu.domain.repository.impl;

import cn.lutu.dao.mapper.SpotTicketMapper;
import cn.lutu.domain.repository.SpotTicketRepository;
import cn.lutu.protocol.entity.SpotAndTicket;
import cn.lutu.protocol.vo.SpotTicketVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class SpotTicketRepositoryImpl implements SpotTicketRepository {
    @Autowired
    SpotTicketMapper spotTicketMapper;
    @Override
    public int updateById(SpotAndTicket spotAndTicket) {
        return spotTicketMapper.updateById(spotAndTicket);
    }

    @Override
    public SpotTicketVO selectInfo(Long id,Long categoryId) {

        return spotTicketMapper.selectInfo(id,categoryId);
    }
}
